package Datastruct.Linked;

public class TestLinked {
    public static void main(String[] args) {
        GoodsNode goodsNode1=new GoodsNode(1,"爆天甲",3333.5);
        GoodsNode goodsNode2=new GoodsNode(2,"爆天电摩",4444.4);
        GoodsNode goodsNode3=new GoodsNode(3,"爆天雷诺",5555.3);
        GoodsNode goodsNode4=new GoodsNode(4,"爆天雪",6666.2);
        GoodsNode goodsNode5=new GoodsNode(5,"爆风雪",7777.1);

        DLLinkedList linkedList=new DLLinkedList();
        linkedList.add(goodsNode1);
        linkedList.add(goodsNode2);
        linkedList.add(goodsNode3);
        linkedList.add(goodsNode4);
        linkedList.add(goodsNode5);

        linkedList.showNode();
        System.out.println( linkedList.getlength());
        linkedList.delNode(1);

        System.out.println("=============================================================");
        linkedList.showNode();
        System.out.println(linkedList.getlength());

    }
}
